﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pepper.Temple.WPF.Core.Events.EventParams
{
    /// <summary>
    /// 携带数据的主题事件参数
    /// </summary>
    /// <typeparam name="TData"></typeparam>
    public class DataTopicEventParam<TData> : TopicEventParam
    {
        public TData Data { get;}
        public DataTopicEventParam(string topic,TData data) : base(topic)
        {
            Data = data;
        }
    }
}
